package com.sheliduan.itlearning.common.domain.dos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author: 断舍离
 * @date: 2025/2/8 20:14
 * @description: 分类表实体类
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName("t_category")
public class CategoryDO {

    @TableId(type = IdType.AUTO)
    private Integer id;

    private String name;

    private Date createTime;

    private Date updateTime;

    // 该分类下的视频课程总数
    private Integer articleTotal;

    // 该分类下的文章课程总数
    private Integer videoTotal;
}
